package org.geektimes.projects.microprofile.servlet;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;

@WebServlet(name = "test", value = "/a")
public class TestHttpServlet extends HttpServlet {

    @Override
    public void init() throws ServletException {
        System.out.println("初始化 TestHttpServlet 成功!");
    }

    @Override
    public void init(ServletConfig config) throws ServletException {
        System.out.println(config.getInitParameter("a"));
        System.out.println("初始化 TestHttpServlet 成功!");
    }
}
